package com.bjsxt.list;

import java.util.ArrayList;
import java.util.Iterator;

public class TestArrayList5 {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList();
        //ArrayList list = new ArrayList(100);
        list.add(80);
        list.add(70);
        list.add(90);
        list.remove(2);
        //list.addAll()
        list.add(0,100);
        System.out.println(list.size());
        System.out.println(list.isEmpty());
        System.out.println(list.indexOf(780));
        System.out.println(list.contains(80));
        int elem = list.get(2);
        System.out.println(elem);
        System.out.println(list);
        Iterator it = list.iterator();
    }
}
